﻿@using AspDotNet.Framework.Mvc.FirstDemo.Models;
@{
    Layout = null;
    ViewBag.Title = "查找学生";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>SelectStudent</title>
</head>
<body>
    <div>
        <table border="1">
            <tr>
                <td>编号</td>
                <td>姓名</td>
                <td>出生年月</td>
            </tr>
            @{
                Student student = null;
                if ((student = ViewBag.Student as Student) != null)
                {
                    <tr>
                        <td>@student.ID</td>
                        <td>@student.Name</td>
                        <td>@student.Birthday</td>
                    </tr>
                }
            }
        </table>
    </div>
</body>
</html>
